package com.zhou.org.controller;


import com.zhou.framework.model.RS;
import com.zhou.framework.util.EnumUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lang.zhou
 * @since 2022-08-23
 */
@RestController
@RequestMapping("/enum")
public class EnumController {

    @Autowired
    private EnumUtil enumUtil;

    @GetMapping("/getType")
    public Object getByType(@RequestParam("type") String type){
        return RS.data(enumUtil.getEnumListByType(type));
    }
}

